package com.wngbms.fileio.file_transfer;

import lombok.Data;

import java.net.SocketAddress;
import java.nio.channels.FileChannel;

@Data
public class FileClient {
    int step = 1;

    int fileNameLength;
    String fileName;
    int fileLength;

    FileChannel fileChannel;

    long startTime;
    SocketAddress socketAddress;
    long receivedLength;

    public boolean isFinished() {
        return receivedLength >= fileLength;
    }
}
